/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package maxspan;

import java.util.Scanner;

/**
 *
 * @author TQNINH
 */
public class EmployeeListTest {
    
    
    public EmployeeListTest() {
        
    }
    
    public static void main(String[] args) {
        EmployeeList employeeListObj = new EmployeeList();
        Scanner input = new Scanner(System.in);
        int choice;
        do {
            System.out.println("\n Select the operation you want to perform:");
            System.out.println("**********************************************");
            System.out.println("1. Add Employees to the list");
            System.out.println("2. Search employee by name");
            System.out.println("3. Display the list");
            System.out.println("4. Exit");
            System.out.println("**********************************************");
            choice = input.nextInt();
            
            switch(choice) {
                case 1:
                    employeeListObj.add();
                    break;
                case 2:
                    employeeListObj.search();
                    break;
                case 3:
                    employeeListObj.display();
                    break;
                case 4:
                    break;
                default:
                    System.out.println("Not a valid choice");
            }
        } while (choice != 4);
    }
}
